//
//  TextEditorViewController.h
//  XPhoto
//
//  Created by sentinel on 2020/4/7.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <BKKit/BKKit.h>
#import <BKKit/BKViewController.h>

NS_ASSUME_NONNULL_BEGIN

@protocol TextEditorDelegate;

@interface TextEditorViewController : BKViewController
@property(nonatomic, strong) IBOutlet UITextView *textView;
@property(nonatomic, strong) NSString *defaultText;
@property(nonatomic, assign) NSInteger *maxLength;
@property(nonatomic, assign) NSInteger *minLength;
@property(nonatomic, strong) NSString *regExpString;
@property(nonatomic, assign) NSInteger tag;
@property(nonatomic, assign) id<TextEditorDelegate> delegate;

@end

@protocol TextEditorDelegate <NSObject>

@optional
- (void)textEditorViewControllerDidFinishedEdit:(TextEditorViewController *)vc;
- (void)textEditorViewControllerDidCanceledEdit:(TextEditorViewController *)vc;
@end
NS_ASSUME_NONNULL_END
